package com.wing.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;

/**
 * 菜单
 *
 * @author
 */
@Data
@TableName("use_menu")
public class Menu extends BaseEntity<Menu> {

    /**
     * 父级ID
     */
    private Long parentId;

    /**
     * 名称
     */
    private String name;

    /**
     * url
     */
    private String url;

    /**
     * 图标
     */
    private String icon;

    /**
     * 排序号
     */
    private Integer sortNumber;

    /**
     * 权限
     */
    private String authority;

    /**
     * 层级
     */
    private Integer grade;

    /**
     * 树路径
     */
    private String treePath;

    /**
     * 父级菜单
     */
    @TableField(exist = false)
    private String parentName;

}